package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdSpecialMapper;
import com.diankangwo.factory.entity.TdSpecial;
import com.diankangwo.factory.service.SpeciaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service("TdSpeciaServiceI")
public class SpeciaServiceImpl implements SpeciaService {

    @Autowired
    private TdSpecialMapper mapper;

    @Override
    @Transactional
    public int deleteByPrimaryKey(Integer id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int insert(TdSpecial record) {
        return mapper.insert(record);
    }

    @Override
    @Transactional
    public int insertSelective(TdSpecial record) {
        return mapper.insertSelective(record);
    }

    @Override
    public TdSpecial selectByPrimaryKey(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    @Transactional
    public int updateByPrimaryKeySelective(TdSpecial record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(TdSpecial record) {
        return mapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdSpecial> queryList(Map<String, Object> map) {
        return mapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return mapper.queryTotal(map);
    }
}
